#ifndef __GPS_DRIFT_H__
#define __GPS_DRIFT_H__

#include "gps.h"
#include "config.h"

#ifdef __cplusplus
extern "C" {
#endif
double nemaBearingFrom(gps_geo_pos_t fromPos, gps_geo_pos_t toPos);
double measureDistanceGoogleMeters(gps_geo_pos_t fromPos,gps_geo_pos_t toPos);

void GPSDRIFT_Init(ifly_gpsdrift_t gpsdrift);
void GPSDRIFT_Reset(ifly_gpsdrift_t gpsdrift);
int GPSDRIFT_DealGpsInfo(ifly_serial_gpsrmc_packet_t *pRmcInfo, ifly_serial_gpsgsa_packet_t *pGsaInfo);
#ifdef __cplusplus
}
#endif

#endif
